<template>
  <div ref="dashboard" class="dashboard-container">
    <div class="left">
      <First />
      <Second />
      <Third />
      <!-- <Fourth/> -->
    </div>
    <div class="right">
      <div class="top"><RightChart /></div>
      <div class="bottom">
        <rightBottom/>
      </div>
    </div>
  </div>
</template>

<script>
import First from "./components/first-row.vue";
import Second from "./components/second-charts.vue";
import Third from "./components/third-echart.vue";
import RightChart from "@/components/radarChart";
import rightBottom from "./components/right-bottom.vue"
export default {
  mounted() {
    // window.addEventListener('resize',()=>{
    //   console.log('变化了');
    // })
    console.log(this.$refs.dashboard.offsetWidth);
    this.$refs.dashboard.addEventListener("resize", function () {
      console.log(555);
    });
  },
  components: {
    First,
    Second,
    Third,
    RightChart,
    rightBottom
  },
};
</script>

<style scoped lang="less">
.dashboard-container {
  height: 100vh;
  display: flex;
  // padding: 50px 50px;
  // background: rgb(49, 58, 108);
  // background: rgb(73, 84, 145);

  background-image: linear-gradient(to top,rgb(17, 26, 73),rgb(53, 66, 139),);;

  .left {
    padding: 0 10px;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .right {
    box-sizing: border-box;
    padding: 25px 35px 0px 35px;
    flex: 1;
    // background: rgb(48, 55, 109);
  background-image: linear-gradient(to top,rgb(17, 26, 73),rgb(53, 66, 139),);;

    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    // .bottom {
    //   .el-row {
    //     margin-bottom: 20px;
    //     &:last-child {
    //       margin-bottom: 0;
    //     }
    //   }
    //   .el-col {
    //     border-radius: 4px;
    //   }
    //   .bg-purple-dark {
    //     background: rgb(70, 78, 133);
    //   }
    //   .bg-purple {
    //     background: #d3dce6;
    //   }
    //   .bg-purple-light {
    //     background: #e5e9f2;
    //   }
    //   .grid-content {
    //     border-radius: 4px;
    //     min-height: 36px;
    //     height: 100px;
    //     border-radius: 20px;
    //   }
    //   .row-bg {
    //     padding: 10px 0;
    //     background-color: #f9fafc;
    //   }
    // }
  }
 
}
</style>
